<!-- BANNER -->
<div class="banner-container">
            <?php
			$banner_images = get_post_meta($post->ID, 'locality_banner_image');
			$banner_images_count = count($banner_images);
			if ( $banner_images_count > 0 )
			{
				foreach($banner_images as $image)
				{
					echo '<a href="'.get_permalink().'" >';
					echo '<img src="'.wp_get_attachment_url($image).'" title="'.get_the_title().'" alt="'.get_the_title().'"/>';
					echo '</a>';
					break;
				}
			}
			else if( function_exists( 'ot_get_option' ))
            {
				
				$banner_link = ot_get_option('banner_link');
				$banner_image = ot_get_option('banner_image');	
				
				if(!empty($banner_image))
				{						
	                ?>
	                <a href="<?php echo $banner_link; ?>">
						<img src="<?php  echo $banner_image; ?>" title="<?php bloginfo('name'); ?>" alt="" />
					</a>
	                <?php
				}
            }
            ?>
</div>